// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import mint from 'mint-ui';
import 'mint-ui/lib/style.css'
import '../lib/mui-master/dist/css/mui.min.css'
import '../lib/mui-master/dist/css/icons-extra.css'
import vueResource from 'vue-resource'
import VuePreview from 'vue-preview';//缩略图

Vue.use(VuePreview)
Vue.use(mint)
Vue.use(vueResource)
Vue.config.productionTip = false
Vue.http.options.root = 'http://www.liulongbin.top:3005/';

Vue.filter("dataFormat",function(da){
  var date = new Date(da);
  let y = date.getFullYear();
      let m = (date.getMonth() + 1).toString().padStart(2, 0);
      let d = date
        .getDate()
        .toString()
        .padStart(2, 0);
      return `${y}-${m}-${d}`;
});

/* eslint-disable no-new */
var vm = new Vue({
  el: '#app',
  router,
  // components: { App },
  render: h => h(App),
  // template: '<App/>'
})


